package org.jeecg.modules.relation.relachstandarddistribution.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.relation.relachstandarddistribution.entity.RelAchStandardDistribution;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.relation.relachstandarddistribution.vo.RelAchStandardDistributionVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: rel_ach_standard_distribution
 * @author: baochangrong
 * @Date:   2022-03-17
 * @Version: V1.0
 */
public interface IRelAchStandardDistributionService extends IService<RelAchStandardDistribution> {

    /** voList 全部查询 分页 */
    IPage<RelAchStandardDistributionVo> voList(Page<RelAchStandardDistributionVo> page, @Param("relAchStandardDistributionVo") RelAchStandardDistributionVo relAchStandardDistributionVo);

    /**
     * 根据试卷ID查询 对应的试卷-标准记录
     * */
    List<RelAchStandardDistributionVo> getByPaperId(@Param("relAchStandardDistributionVo") RelAchStandardDistributionVo relAchStandardDistributionVo);

    List<RelAchStandardDistribution> queryStandardIdByObjTypeId(String objId,String objType);

    List<RelAchStandardDistribution> queryAllByObjId(String examId);

    boolean cleanAllItemsAndRules(String examId);

}
